package com.itheima.service.impl;

import com.itheima.mapper.AccountLogMapper;
import com.itheima.service.AccounLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.text.SimpleDateFormat;
import java.util.Date;

@Service
public class AccountLogServiceimpl implements AccounLogService {
    @Autowired
    private AccountLogMapper accountLogMapper;

    @Override
    public void zhuan() {
//      设置时间规范
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("y-M-d");
//        获取当前时间
        String format = simpleDateFormat.format(new Date());
//        调用日志方法
        accountLogMapper.interAccountLog(format);
    }
}
